<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
</html>

<script>

var arr = [17, 19, 30, 55, 13, 19];
// 数组转为 [ { name: 19}, { name: 30}, { name: 55}, { name: 19}]
var result = arr
  .map(function(d) {
    return {
      name: d
    }
  })
  .filter(function(d) {
    return d.name > 18;
  });
console.log('result', result);
</script>